<?php
defined('_JEXEC') or die('Restricted access');
require_once(JPATH_COMPONENT.DS.'persistencia'.DS.'DAOFactory.php');
require_once('JDAOEventSuscription.php');
require_once('JDAOEvent.php');
require_once('JDAOComment.php');
require_once('JDAOCategory.php');
require_once('JDAOAreaAdministrativa.php');
require_once('JDAOPais.php');

class JDAOFactory extends DAOFactory{
	
	private static $instance;
	public static function getInstance() 
	    {
	        if (!isset(self::$instance)) {
	            $c = __CLASS__;
	            self::$instance = new $c;
	        }
	        return self::$instance;
	}
	
	private function __construct(){
		
	}

	public function getDAOEvent(){
		return new JDAOEvent();
	}

	public function getDAOComment(){
		return new JDAOComment();
	}
	
	public function getDAOEventSuscription(){
		return new JDAOEventSuscription();
	}
	public function getDAOCategory(){
		return new JDAOCategory();
	}
	public function getDAOPais(){
		return new JDAOPais();
	}
	public function getDAOAreaAdministrativa(){
		return new JDAOAreaAdministrativa();
	}
}

?>